﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Manon.Admin.Web.ApplicationCore.Dtos.User
{
    public class SaveUserInput
    {
        public int Id { get; set; }
         
        [StringLength(50, ErrorMessage = "用户名称长度至少1位，最大长度50位", MinimumLength = 1)]
        [Required(ErrorMessage = "用户名称不能为空!")]
        public string UserName { get; set; }

        [StringLength(100, ErrorMessage = "真实名称长度至少1位，最大长度100位", MinimumLength = 1)]
        [Required(ErrorMessage = "真实名称不能为空!")]
        public string RealName { get; set; }

        public string Password { get; set; }

        public bool Enabled { get; set; } 
         
    }
}
